package com.bw.mallshop.login;

import androidx.databinding.ObservableField;

import com.blankj.utilcode.util.LogUtils;
import com.blankj.utilcode.util.ToastUtils;
import com.bw.mvvm_common.entity.BaseEntity;
import com.bw.mvvm_common.mvvm.viewmodel.BaseViewModel;

public
/**
 * @author Lishaohe
 * @description:
 * @date :2021/10/12 0012 下午 5:43
 *
 */
class LoginViewModel extends BaseViewModel<LoginModel> {
    public ObservableField<String> name = new ObservableField<>();
    public ObservableField<String> pwd = new ObservableField<>();
    @Override
    protected void result(BaseEntity entity) {

    }
    public void loginClick(){
        LogUtils.e("loginClick():"+name.toString());
        LogUtils.e("loginClick():"+pwd.toString());
        ToastUtils.showLong("name.get()");
        m.login(name.get(),pwd.get());
    }
}
